package com.example.jdbc.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import javax.sql.DataSource;
@Controller
public class LoginController {

    @Autowired
    private DataSource dataSource;

    @GetMapping("/testConfig")
    public String testConfig(){
        System.out.println("this.dataSource.getClass().getPackage() = " + this.dataSource.getClass().getPackage());
        return "../static/index";
    }
}
